using System;
using System.Data;
using System.Linq;
using System.Data.Linq;
using System.Linq.Expressions;
using System.Data.Linq.Mapping;
using System.Collections;
using System.Collections.Generic;
using Widgetsphere.Core.DataAccess;

namespace Acme.AuditExample.Business.LINQ
{
	/// <summary>
	/// This is a helper object for running LINQ queries on the Customer collection.
	/// </summary>
	[Serializable()]
	[Table(Name = "Customer")]
	public partial class CustomerQuery : IBusinessObjectLINQQuery
	{
		#region Properties
		/// <summary>
		/// (Maps to the 'Customer.CustomerId' database field)
		/// </summary>
		[Column(Name = "CustomerId", DbType = "UniqueIdentifier", CanBeNull = false, IsPrimaryKey = true)]
		public virtual System.Guid CustomerId { get; set; }
		/// <summary>
		/// (Maps to the 'Customer.Name' database field)
		/// </summary>
		[Column(Name = "Name", DbType = "VarChar (100)", CanBeNull = true, IsPrimaryKey = false)]
		public virtual string Name { get; set; }
		/// <summary>
		/// The date of creation
		/// </summary>
		[Column(Name = "CreatedDate", DbType = "DateTime", CanBeNull = true)]
		public virtual DateTime? Createddate { get; set; }
		/// <summary>
		/// The name of the creating entity
		/// </summary>
		[Column(Name = "CreatedBy", DbType = "VarChar(100)", CanBeNull = true)]
		public virtual string Createdby { get; set; }
		/// <summary>
		/// The date of last modification
		/// </summary>
		[Column(Name = "ModifiedDate", DbType = "DateTime", CanBeNull = true)]
		public virtual DateTime? Modifieddate { get; set; }
		/// <summary>
		/// The name of the last modifing entity
		/// </summary>
		[Column(Name = "ModifiedBy", DbType = "VarChar(100)", CanBeNull = true)]
		public virtual string Modifiedby { get; set; }
		/// <summary>
		/// This is an internal field and is not to be used.
		/// </summary>
		[Column(Name = "TimeStamp", DbType = "Binary", CanBeNull = false)]
		public virtual byte[] Timestamp { get; set; }


		#endregion

	}

}
